<script setup>
	import {
		ref
	} from 'vue';

	const count = ref(100)
	const updateCount = function() {
		count.value++
	}
	defineExpose({
		count,
		str: "abc",
		updateCount
	})
</script>
<template>
	<view class="out">
		子组件count值：{{count}}
	</view>
</template>
<style lang="scss" scoped>
.out{
	padding: 20px;
	background-color: #eee;
}
</style>